package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.StreetRideOrderPaidThrough;
import com.njtoyo.taxi.admin.mapper.master.enums.WechatRedpacketWithdrawState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Dell
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "StreetRideOrder对象", description = "")
public class StreetRideOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "第三方支付订单号")
    private String outTradeNo;

    @ApiModelProperty(value = "用户ID")
    private Long customerId;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "所属公司ID")
    private Long companyId;

    @ApiModelProperty(value = "运营区ID")
    private Long cantonId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "实际所得")
    private BigDecimal actualAmount;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "支付状态(0:init,1:operated,2:done,3:cancelled,4:failed,5:rejected,6:front_end_done)")
    private WechatRedpacketWithdrawState state;

    @ApiModelProperty(value = "支付类型(0:unknown,1:cash,2:online,3:wxapp,4:wechat,5:alipay,6:saving,7:redpacket,8:jybwxapp,9:point,10:mixed)")
    private StreetRideOrderPaidThrough paidThrough;

    @ApiModelProperty(value = "应用自定义支付订单号")
    private String number;


}
